<?php
class Application_Helper_Authenticate
{
	public static function checkLogin($control)
	{
		$uid = self::getUid();
		
		if(! $uid)
		{
			$control->redirect('/login');
		}
	}
	
	public static function getUid()
	{
		return Application_Helper_Session::get('uid', '');
	}
}